<include file="public@header"/>
<style type="text/css">
    .line-limit-length {
        max-width: 110px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap; //文本不换行，这样超出一行的部分被截取，显示...
    }
</style>

</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">用户说列表</a></li>
        <li><a href="{:url('AdminGuests/pinglunadd')}">添加</a></li>
    </ul>

    <table class="table table-hover table-bordered table-list">
        <thead>
        <tr>
            <th width="15">
                <label>
                    <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                </label>
            </th>
            <notempty name="category">
                <th width="50">{:lang('SORT')}</th>
            </notempty>
            <th width="50">ID</th>
            <th>内容</th>
            <th>描述图片</th>
            <th>用户头像图片</th>
            <th>昵称</th>
            <th>时间</th>
            <th width="90">操作</th>
        </tr>
        </thead>
        <foreach name="guests" item="vo">
            <tr>
                <td>
                    <input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                           value="{$vo.id}" title="ID:{$vo.id}">
                </td>
                <td><b>{$vo.id}</b></td>
                <td >
                        {$vo.content}
                </td>
                <td >
                    <noempty name="$vo.img">
                        <img src="{$vo.img}" style="height:100px;width:100px;"/>
                    </noempty>
                </td>
                <td >
                    <noempty name="$vo.headimg">
                        <img src="{$vo.headimg}" style="height:100px;width:100px;"/>
                    </noempty>
                </td>
                <td >
                        {$vo.nickname}
                </td>
                <td>
                    {:date('Y-m-d H:i:s',$vo.dottime)}
                </td>

                <td>
                    <a href="{:url('AdminGuests/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:lang('DELETE')}</a>
                </td>
            </tr>
        </foreach>
    </table>
    <ul class="pagination">{$page|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>

</body>
</html>